import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/mainView'
    },
    {
        path: '/mainView', //导入音乐的主界面
        name: 'mainView',
        component: () => import('../views/MainView.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router
